package org.chickymate.scrumboard.client.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;


public class Board implements Serializable {

	private long id; 
	private String ownerMail; 
	private String projectName;
	private Set<BacklogItem> backlogItems = new HashSet<BacklogItem>();
	
	public Board(){}
	
	public Board(String ownerMail) {
		super();
		this.ownerMail = ownerMail;
	}

	public void addBacklogItem(BacklogItem backlogItem) {
		this.backlogItems.add(backlogItem);
	}

	public Set<BacklogItem> getBacklogItems() {
		return this.backlogItems;
	}

	public long getId() {
		return id;
	}

	private void setId(long id) {
		this.id = id;
	}

	public String getOwnerMail() {
		return ownerMail;
	}

	private void setOwnerMail(String ownerMail) {
		this.ownerMail = ownerMail;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
}
